Piwik\Plugins\UsersManager\API D

Total Complexity 206
Dependencies 34
Dependents 21
Total lines 1,234
Lines of code 739
Logical lines of code 495
Comment lines 421
Methods 56
Properties 12

Methods 56

Method Rating Maintainability Complexity Lines of code
updateUser()
A
43 14 48
getUsersPlusRole()
A
41 13 54
setUserAccess()
A
45 11 41
addCapabilities()
A
48 11 34
createAppSpecificTokenAuth()
A
52 11 23
getSitesAccessForUser()
S
50 7 26
setSuperUserAccess()
S
54 7 19
deleteUser()
S
51 6 24
generateInviteLink()
S
54 5 18
resendInvite()
S
55 5 18
getDeviceDescription()
S
55 5 18
addUser()
S
55 5 17
getRoleAndCapabilitiesFromAccess()
S
59 5 15
__construct()
S
61 5 11
getRolesAndCapabilitiesForLogin()
S
57 4 17
inviteUser()
S
56 4 17
getPreferenceId()
S
57 4 16
getIdSitesCheckAdminAccess()
S
59 4 15
removeCapabilities()
S
60 4 14
getDefaultUserPreference()
S
59 4 14
getAllUsersPreferences()
S
58 3 15
getSitesAccessFromUser()
S
59 3 14
getInstance()
S
60 3 13
getUsers()
S
60 3 13
isUserTheOnlyUserHavingSuperUserAccess()
S
62 3 11
userExists()
S
64 3 11
getUserPreference()
S
63 3 11
setUserPreference()
S
62 3 11
initUserPreferenceWithDefault()
S
64 3 10
getUser()
S
64 3 10
checkUsersHasNotSuperUserAccess()
S
63 3 10
checkAccessType()
S
66 3 8
getUserByEmail()
S
64 3 10
getUsersWithSiteAccess()
S
63 2 11
getAvailableRoles()
S
65 2 8
checkUserIsNotAnonymous()
S
73 2 5
checkUserEmailExists()
S
72 2 5
checkUserExists()
S
72 2 5
sendEmailChangedEmail()
S
72 2 5
newsletterSignup()
S
65 2 8
getAvailableCapabilities()
S
65 2 8
isUserHasAdminAccessTo()
S
68 2 8
checkUserExist()
S
70 2 6
sendUserInfoChangedEmail()
S
67 1 7
sendPasswordChangedEmail()
S
78 1 3
getUsersSitesFromAccess()
S
69 1 7
reloadPermissions()
S
78 1 4
getUserLoginFromUserEmail()
S
69 1 7
userEmailExists()
S
74 1 5
getPreferenceValue()
S
79 1 3
hasSuperUserAccess()
S
81 1 3
getUsersLogin()
S
71 1 6
getUsersAccessFromSite()
S
71 1 6
getAllRolesAndCapabilities()
S
73 1 5
isValidAccessType()
S
79 1 3
getUsersHavingSuperUserAccess()
S
73 1 5